From: Eli Zaretskii Date: Sun, 28 Sep 2003 20:49:19 +0000 (+0000) Subject: (tty_setup_colors): Treat any negative argument as -1. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~25402 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f84efb247b0a60e5aeaf1d257e80cc2e1bec2e64;p=emacs.git (tty_setup_colors): Treat any negative argument as -1. --- diff --git a/src/term.c b/src/term.c index dba6b0e4a52..8e4eb21c362 100644 --- a/src/term.c +++ b/src/term.c @@ -2066,6 +2066,10 @@ void tty_setup_colors (mode) int mode; { + /* Canonicalize all negative values of MODE. */ + if (mode < -1) + mode = -1; + switch (mode) { case -1: /* no colors at all */